package net.yeah.mickey_zhouyou.module.booklist.component;

import javax.swing.tree.DefaultMutableTreeNode;

import net.yeah.mickey_zhouyou.module.booklist.domain.Category;

public class CategoryTreeNode extends DefaultMutableTreeNode {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2592145838850291895L;

	private Category category;

	public CategoryTreeNode(Category category) {
		super(category.getText());
		this.category = category;
	}

	public Category getCategory() {
		return category;
	}

}
